
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  userId: state => state.user.userInfo.userId,
  company: state => state.user.userInfo.company,
  departmentName: state => state.user.userInfo.departmentName,
  routes: state => state.user.routers
  // info:state => state.user.info.name.aa.bb
}
export default getters

// 简化了子模块内容的获取
// store.getters.info
// store. state.user.info.name.aa.bb
